<?php if ($_GET['preview']) echo "<script type='text/javascript'>"?>
var wljs="";<?php if (count($list)): foreach($list as $v):?>wljs+='<li><span class="wishlistitem"><a target="_blank" href="http://www.loopo.cn/items.php/<?php echo $v['id']?>?wish=<?php echo md5($uid)?>"><?php echo $v['name']?></a></span><?php if($_GET['price']):?> - <span class="wishlistprice">&yen;<?php echo $v['price1']?></span><?php endif?></li>';<?php endforeach?>
<?php else:?>
wljs='Wishlist为空';
<?php endif?>
<?php if ($_GET['preview']):?>
document.getElementById('c_preview').innerHTML = wljs;</script>
<?php else:?>
document.write(wljs);
<?php endif?>